package com.dhb.pattern.decorator;

/**
 * 功能描述：加蛋装饰器,增强基础装饰器
 * 创建人：citymoon
 * 创建日期：2019/5/25
 */
public class BattercakeEggDecorator extends BattercakeDecorator {

    public BattercakeEggDecorator(Battercake battercake){
        super(battercake);
    }

    @Override
    public void doSomething() {

    }

    @Override
    public String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 1;
    }
}
